{% extends "base_site.html" %}
{% load i18n %}
{% load tabind %}

{% block content_title %}
<h2>{{ content_title }}</h2>
{% endblock %}
{% block content %}
  <div id="content-main">
    {% for el in usergrperm_list %}
    <p><a href="/admin/auth/group/{{ el.0.group_id }}">{{ el.0 }}</a></p>
      {% if el.1 %}
      <ul class="plainlist">
        {% for us in el.1 %}
        <li>User
          <a href="/admin/auth/user/{{ us.user_id }}">{{ us.user.username }}</a>
          has permissions:
          <a href="/edit/UserGroupPerm/{{ us.id }}">{{ us }}</a>
        </li>
      {% endfor %}
      </ul>
      {% endif %}
    {% empty %}
      <p>{% trans 'You are not a master in any group on your desktop.' %}</p>
    {% endfor %}
  </div>
{% endblock %}
